<!DOCTYPE html>
<html>
<?php include("head.php")?>
<body>
	<div class="container">
		<a class="brand" href="<?php echo base_url() ?>" name="top"><img style="margin: 6px auto" src="<?php echo base_url('application/views/img/logo.png') ?>" alt="Image" style="max-width:100%;" /></a>

		<?php include("navbar.php")?>

		<div class="btn-group">
			<button class="btn btn-primary btn-large"><i class="icon-plus icon-white"></i></button>
			<button class="btn btn-primary btn-large"> Nueva película</button>
		</div>
		<hr />
		<div>
			<table class="table table-striped">
			  <thead>
				<tr>
				  <th>Póster</th>
				  <th>Año</th>
				  <th>Título</th>
				  <th>Género</th>
				  <th>Sinopsis</th>
				  <th style="width: 36px;"></th>
				</tr>
			  </thead>
			  <tbody>
			  <?php
				echo $this->pagination->create_links();
				for($i=0;$i<count($result);$i++){
				echo "<tr>
				  <td><img src=\"".$result[$i]->rutaPoster."\" alt=\"Image\" style=\"width:36px;\" /></td>
				  <td>".$result[$i]->anyo."</td>
				  <td>".$result[$i]->titulo."</td>
				  <td>".$result[$i]->genero."</td>
				  <td>".$result[$i]->sinopsis."</td>
				  <td>
					<div class=\"btn-group\">
						<button class=\"btn btn-success\"><i class=\"icon-pencil icon-white\"></i></button>
						<button class=\"btn btn-danger\"><i class=\"icon-remove icon-white\"></i></button>
					</div>
				  </td>
				</tr>";
				}
				?>
			  </tbody>
			</table>
		</div>
		
	<?php include("footer.php")?>
	</div>
	
	<?php include("scripts.php")?>

  </body>
</html>
	
	
